* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #333;
    padding: 20px;
}

.box {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.box:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.header {
    height: 70px;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-bottom: 1px solid #f0f2f5;
}

.header a {
    width: 120px;
    height: 40px;
    line-height: 40px;
    background-color: #fff;
    border: 1px solid #e4e7ed;
    margin-right: 15px;
    display: inline-block;
    text-align: center;
    border-radius: 6px;
    color: #606266;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.header a:hover {
    background-color: #f5f7ff;
    border-color: #c0c4cc;
    color: #409eff;
    transform: translateY(-2px);
}

.header a.active {
    background-color: #409eff;
    border-color: #409eff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}

.content {
    padding: 25px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    font-size: 14px;
    min-width: 1000px;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: #f8fafc;
    color: #5a5e66;
    font-weight: 600;
    text-align: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f2f5;
    position: relative;
}

th:hover {
    background-color: #f1f5f9;
}

td {
    padding: 16px 0;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
    color: #606266;
    transition: background-color 0.2s;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f8fafc;
}

tr.selected td {
    background-color: #f0f7ff;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    cursor: pointer;
    accent-color: #409eff;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

button {
    border: none;
    color: #409eff;
    background-color: transparent;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

button:hover {
    background-color: #ecf5ff;
    color: #66b1ff;
    transform: translateY(-1px);
}

button i {
    font-size: 14px;
}

.status-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.status-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dcdfe6;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #67c23a;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    align-items: center;
    gap: 8px;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    background-color: #fff;
}

.pagination button.active {
    background-color: #409eff;
    color: #fff;
    border-color: #409eff;
}

.pagination-info {
    font-size: 13px;
    color: #909399;
    margin-right: 15px;
}

.sort-icon {
    margin-left: 4px;
    color: #c0c4cc;
    transition: all 0.3s;
}

.sort-icon.active {
    color: #409eff;
}

.product-name {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

.price {
    color: #f56c6c;
    font-weight: 600;
}

.stock {
    color: #67c23a;
    font-weight: 600;
}

.sales {
    color: #409eff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 15px;
    }

    .content {
        padding: 15px;
    }
}
.active{
    background-color: #0056b3;
}

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

tbody tr {
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
}

/* 搜索区域样式 */
.Nav {
    width: 100%;
    min-height: 70px;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 15px 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    flex-wrap: wrap;
    gap: 15px;
}

.search-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.search-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-label {
    margin-right: 8px;
    font-size: 14px;
    color: #606266;
    white-space: nowrap;
}

.search-input {
    height: 40px;
    padding: 0 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.search-input:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

#searchInput {
    width: 250px;
    padding-right: 35px;
}

#searchInput1 {
    width: 180px;
}

#searchInput2 {
    width: 180px;
    padding-right: 35px;
}

.search-icon {
    position: absolute;
    right: 10px;
    color: #c0c4cc;
    pointer-events: none;
}

/* 联想下拉框 */
.suggestions-container {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f2f5;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: #f5f7fa;
}

.suggestion-image {
    width: 40px;
    height: 40px;
    background-color: #f5f7fa;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c4cc;
    font-size: 12px;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-meta {
    font-size: 12px;
    color: #909399;
    display: flex;
    gap: 10px;
}

.match-highlight {
    color: #409eff;
    font-weight: bold;
    background-color: rgba(64, 158, 255, 0.1);
    padding: 0 2px;
    border-radius: 2px;
}

/* 日期选择器图标 */
.datepicker-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #c0c4cc;
    pointer-events: none;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .search-group {
        width: 100%;
    }

    #searchInput,
    #searchInput1,
    #searchInput2 {
        width: 100%;
    }
}
.father{
 position: relative;
}
.pop{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 300px;
    background-color: #fff;
    z-index: 100;
    display: none;
}
.pop span{
  float: right;
    margin: 10px 20px;
    cursor: pointer;
}